package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.math.BigDecimal;

@Data
public class ThreePhaseUnbalanceVO {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "数据时间点")
    private LocalDateTime timePoint;     // 数据时间点
    @Schema(description = "设备ID")
    private Long deviceId;               // 设备ID
    @Schema(description = "设备名称")
    private String deviceName;           // 设备名称（可选）
    @Schema(description = "A相电压 (V)")
    private BigDecimal currentA;         // A相电流 (A)
    @Schema(description = "B相电压 (V)")
    private BigDecimal currentB;         // B相电流 (A)
    @Schema(description = "C相电压 (V)")
    private BigDecimal currentC;         // C相电流 (A)
    @Schema(description = "平均电流 (A)")
    private BigDecimal averageCurrent;   // 平均电流
    @Schema(description = "不平衡度 (%)")
    private BigDecimal unbalanceRate;    // 不平衡度 (%)

}